cmake_minimum_required(VERSION 3.11)

aux_source_directory(${CMAKE_CURRENT_LIST_DIR} DIR_LIB_SRC)

set_source_files_properties( basic.rc
        PROPERTIES
        COMPILE_FLAGS "-D GCC_WINDRES")
list(APPEND SRCS basic.rc)
add_executable(basic ${DIR_LIB_SRC} ${SRCS})
target_link_options(basic PRIVATE -static-libgcc -static-libstdc++ -mwindows -municode
        -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive)
target_link_libraries(basic base duilib)

